# coding:utf-8

a = 10
b = 20
c = 30

d, e, f = 10, 20, 30

names = ['诸葛亮', '刘备', '张飞']
print(names)

# 追加到末尾
names.append('赵云')
print(names)


# 插入
names.insert(2,'关羽')
print(names)

# 删除末尾的元素
names.pop()
print(names)

# 指定下标删除
names.pop(0)
print(names)

# 指定元素删除
names.remove('关羽')

# 修改元素的值
names[1] = '张翼德'
print(names)

